package com.zl.learning.arithmetic.data_structure;

import org.junit.Test;

public class TreeTest {

    @Test
    public void test1() {
        Node J = new Node(8, null, null);
        Node H = new Node(4, null, null);
        Node G = new Node(2, null, null);
        Node F = new Node(7, null, J);
        Node E = new Node(5, H, null);
        Node D = new Node(1, null, G);
        Node C = new Node(9, F, null);
        Node B = new Node(3, D, E);
        Node A = new Node(6, B, C);

        A.preOrder();
    }
}
